package com.naton.common.ui;

import android.app.Application;
import com.jeremyliao.liveeventbus.LiveEventBus;

/**
 * application 的基类 用于初始化一些公共的事情
 */
public class CommApplication extends Application {

    private static CommApplication instance;

    public static CommApplication getInstance(){
        return instance;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        //初始化事件总线
        LiveEventBus.config().lifecycleObserverAlwaysActive(true).autoClear(false);
    }

}
